/**
 * Created by jiachneyu on 2018/3/16.
 */
const fs = require("fs");
const path = require("path");

let index = async (ctx,next) => {
    const file = fs.readFileSync(path.resolve(__dirname,"../dist/index.html"),"utf-8");
    console.log(file)
    ctx.response.body = file
}


module.exports = [
    {
        method: "get",
        handle: index,
        path: "/"
    }
]